<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>旋转的战哥</title>
    <style>
        body {
            perspective: 1000px;
        }

        section {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 100px auto;
            animation: rotate 15s linear infinite;
            transform-style: preserve-3d;
            background: url("./img/gg12.jpg");
            background-size: 200px;
        }

        section:hover {
            animation-play-state: paused;
        }

        @keyframes rotate {
            0% {
                transform: rotateY(0deg);
            }
            100% {
                transform: rotateY(360deg);
            }
        }

        section div {
            position: absolute;
            top: 0;
            left: 0;
            width: 200px;
            height: 200px;
        }

        section div:nth-child(1) {
            transform: translateZ(300px);
            background: url("./img/gg7.jpg");
            background-size: 200px;
        }

        section div:nth-child(2) {
            transform: rotateY(60deg) translateZ(300px);
            background: url("./img/gg9.jpg");
            background-size: 200px;
        }

        section div:nth-child(3) {
            transform: rotateY(120deg) translateZ(300px);
            background: url("./img/gg4.jpg");
            background-size: 200px;
        }

        section div:nth-child(4) {
            transform: rotateY(180deg) translateZ(300px);
            background: url("./img/gg11.jpg");
            background-size: 200px;
        }

        section div:nth-child(5) {
            transform: rotateY(240deg) translateZ(300px);
            background: url("./img/gg15.jpg");
            background-size: 200px;
        }

        section div:nth-child(6) {
            transform: rotateY(300deg) translateZ(300px);
            background: url("./img/gg14.jpg");
            background-size: 200px;
        }


    </style>
</head>
<body>
<section>
    <div><img src="./gg7" alt="" width="200px"></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
</section>
</body>
</html>